package com.java.zhuiyun.api.uploader.mapper;

import com.java.zhuiyun.api.file_manager.entity.FileManager;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

@Mapper
public interface UploadMapper {
    @Insert("insert into file_manager (encrypt_file,file_manager_name," +
            "file_path,sharding_total,uploaded_by,size,file_type,create_time," +
            "update_time,del_flag,audit_type) " +
            "values (#{encryptFile},#{fileManagerName}," +
            "#{filePath},#{shardingTotal},#{uploadedBy},#{size},#{fileType}," +
            "#{createTime},#{updateTime},#{delFlag},#{auditType})")
    @Options(useGeneratedKeys = true, keyProperty = "fileManagerId")
    Integer Upload(FileManager fileManager);
}
